package com.qzyh.esb.egsa.utils;

import com.qzyh.esb.egsa.bean.vo.RoleVO;
import com.qzyh.esb.egsa.entity.Role;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface RoleConverter {

    // 实例
    RoleConverter INSTANCE = Mappers.getMapper(RoleConverter.class);

    Role roleVOToRole(RoleVO roleVO);

    List<Role> roleVOListToRoleList(List<RoleVO> roleVOList);

}
